<style>
.formcheck,.ketqua{
    width:414px;
    padding:10px;
    margin:10px;
    border:1px solid #cacaca
}
.formcheck textarea{
    width:400px;
    height:250px
}
.ketqua{
    color:#0EF922;
}
.ketqua span{
    color:red;
}
</style>

<div class="offerbanner clearfix">
    <div class="mota">
        <div class="img_list_group">
            Check ip
        </div>
    </div> 
           
    <div class="left formcheck">
        <form method="post" action="" id="checkip">
            <textarea name="ip"></textarea>
            <input type="submit" value="Check"/>
        </form>
    
    </div>
    
    <div class="right ketqua">    
    
    
    </div>

</div>
<script>
$('document').ready(function(){
    $( "#checkip" ).live( "submit", function() {        
        var url ='<?php echo base_url();?>check/ajaxcheckip/';
        var data = $(this).serialize();
        $.ajax({
              		type: "POST",
              		url: url,
              		data: data,
                    success: hoanthanh,
                    error: hoanthanh
            		});
        
        return false;
        });
})

function hoanthanh (dt, status){
    $('.ketqua').html(dt);
}
</script>